import java.awt.geom.Point2D;

public class MovePoint {
	public int[] dir = new int[9];
	public Point2D coord = new Point2D.Double();
	
	public MovePoint(Point2D c, int d){
		coord = c;
		dir[d]=1;
	}
	
	public String toString(){
		String str = coord.toString() + "-";
		for(int i=0;i<9;i++) str += dir[i];
		return str;
	}
	
	public int getDirSum(){
		return dir[0]+dir[1]+dir[2]+dir[3]+dir[4]+dir[5]+dir[6]+dir[7];
	}
	
}